package com.shugl.demo.config.constant;


/**
 * Description http请求状态码
 *
 * @author ShuGuili
 * @version 1.0
 * @since 2020/9/17 15:35
 */

public enum HttpCode {

    OK(200, "成功"),
    ERR_TOKEN(401, "登录信息丢失"),
    NOT_FOUND(404, "资源找不到"),
    SYSERROR(500, "系统异常");

    private String des;
    private int code;

    HttpCode(int code, String des) {
        this.code = code;
        this.des = des;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }
}
